package com.qf.common.exception;


import com.qf.common.constants.CommonConstants;

public class CustomerException extends RuntimeException{
    /**
     * 异常编码
     */
    private int code;
    /**
     * 异常信息
     */
    private String msg;

    public CustomerException() {
    }

    public CustomerException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public CustomerException(String msg) {
        this.code = CommonConstants.FAIL;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
